package com.edie.customview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.edie.customview.modular.BlurActivity;
import com.edie.customview.modular.BottomNavigationActivity;
import com.edie.customview.modular.ColorActivity;
import com.edie.customview.modular.ConstraintActivity;
import com.edie.customview.modular.DatabaseActivity;
import com.edie.customview.modular.FaceActivity;
import com.edie.customview.modular.MainActivity;
import com.edie.customview.modular.NestedScrollActivity;
import com.edie.customview.modular.NetRequestActivity;
import com.edie.customview.modular.ZoneActivity;
import com.edie.customview.modular.mymvp.MvpActivity;
import com.edie.customview.modular.mymvpusebase.MyMvpDemoActivity;
import com.edie.customview.simplefingerprint.Main1Activity;

/**
 * - @Description:  引导功能页
 * - @Author:  edie
 * - @Time:  2018/6/20 下午3:50
 */
public class NavigationActivity extends AppCompatActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_navigation);
        initView();
    }

    private void initView() {
        findViewById(R.id.main_btn).setOnClickListener(this);
        findViewById(R.id.constraint_btn).setOnClickListener(this);
        findViewById(R.id.simple_btn).setOnClickListener(this);
        findViewById(R.id.net_btn).setOnClickListener(this);
        findViewById(R.id.face_btn).setOnClickListener(this);
        findViewById(R.id.database_btn).setOnClickListener(this);
        findViewById(R.id.mvp_btn).setOnClickListener(this);
        findViewById(R.id.base_mvp_btn).setOnClickListener(this);
        findViewById(R.id.navigation_btn).setOnClickListener(this);
        findViewById(R.id.nested_scroll_btn).setOnClickListener(this);
        findViewById(R.id.blur_btn).setOnClickListener(this);
        findViewById(R.id.color_btn).setOnClickListener(this);
        findViewById(R.id.zone_btn).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.main_btn:
                MainActivity.start(this);
                break;
            case R.id.constraint_btn:
                ConstraintActivity.start(this);
                break;
            case R.id.simple_btn:
                Main1Activity.start(this);
                break;
            case R.id.net_btn:
                NetRequestActivity.start(this);
                break;
            case R.id.face_btn:
                FaceActivity.start(this);
                break;
            case R.id.database_btn:
                DatabaseActivity.start(this);
                break;
            case R.id.mvp_btn:
                MvpActivity.start(this);
                break;
            case R.id.base_mvp_btn:
                MyMvpDemoActivity.start(this);
                break;
            case R.id.navigation_btn:
                BottomNavigationActivity.start(this);
                break;
            case R.id.nested_scroll_btn:
                NestedScrollActivity.start(this);
                break;
            case R.id.blur_btn:
                BlurActivity.start(this);
                break;
            case R.id.color_btn:
                ColorActivity.start(this);
                break;
            case R.id.zone_btn:
                ZoneActivity.start(this);
                break;

        }
    }
}
